|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgalcommand.Properties
public abstract class Properties
The Properties class holds application-wide constants, such as the locations of important files.
Copyright Owner: Michigan State University, license number TEC2011-002101Prov
| Field Summary | |
|---|---|
static java.lang.String |
APPLICATION_DIRECTORY_PATH
This is the filepath of the folder where the jar executable resides |
static java.lang.String |
DATA_TYPE_TURBIDITY
This is the string in the type attribute that is sent by the PBRBrain to identify turbidity data. |
static int |
PBR_PORT
This is the port number used for network communications |
static java.lang.String |
SCRIPT_DIRECTORY_PATH
This string is the filepath to the folder that holds scripting related resources |
static java.lang.String |
SCRIPT_FUNCTION_DEINITIALIZE
This is the name of the script function that is called everytime the script file is closed (such as when the program is closed or the PBR is otherwise interrupted during an experiment). |
static java.lang.String |
SCRIPT_FUNCTION_ENDEXPERIMENT
function experimentStart(){ |
static java.lang.String |
SCRIPT_FUNCTION_STARTEXPERIMENT
function experimentStart(){ |
static java.lang.String |
SCRIPT_FUNCTION_TURBIDITYEVENT
This is the name of the script function that is called whenever turbidity data arrives from the hardware. function turbidityEvent(transmission){ |
static java.io.File |
SCRIPT_HEADER_FILE
This File should point to the header for PBR scripts. |
static long |
TIMEOUT_MS
How long to wait for a responce before timing out. |
static java.lang.String |
VARIABLE_DIRECTORY
Name of the local folder that is used to store saved variables |
| Constructor Summary | |
|---|---|
Properties()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String APPLICATION_DIRECTORY_PATH
public static final java.lang.String SCRIPT_DIRECTORY_PATH
public static final java.io.File SCRIPT_HEADER_FILE
public static final java.lang.String DATA_TYPE_TURBIDITY
public static final java.lang.String SCRIPT_FUNCTION_DEINITIALIZE
function deinitialize(){
/* do stuff that happens right before closing the
script file, such as saving persistant variables */
}
public static final java.lang.String SCRIPT_FUNCTION_TURBIDITYEVENT
function turbidityEvent(transmission){
/* Do stuff related to transmission, transmission is measured in volts*/
}
public static final java.lang.String SCRIPT_FUNCTION_STARTEXPERIMENT
function experimentStart(){
/* do stuff that happens only once, at the beginning of the experiement */
}
public static final java.lang.String SCRIPT_FUNCTION_ENDEXPERIMENT
function experimentStart(){
/* do stuff that happens only once, at the end of the experiement */
}
public static final java.lang.String VARIABLE_DIRECTORY
public static final long TIMEOUT_MS
public static final int PBR_PORT
| Constructor Detail |
|---|
public Properties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||